package cn.itcast.dao;

import cn.itcast.domain.Student;

import java.util.ArrayList;

public interface StudentDao {
    /**
     * 查询所有学生
     * @return List<Student>
     */
    public abstract ArrayList<Student> findAll();

    /**
     * 根据id查询学生
     * @param id
     * @return Student
     */
    public abstract Student findById(int id);

    /**
     *
     * @param stu
     * @return int
     */
    public abstract int insert(Student stu);

    /**
     *
     * */
    public abstract int update(Student stu);

    public abstract int delete(Integer id);

}
